<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'update.jsp' starting page</title>
     <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.min.js"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	
	$(document).ready(function() {
		var url = location.search; 
	  	if (url.indexOf("?") != -1) { 
	  	var str = url.substr(1); 
	  	strs = str.split("="); 
	  	
	  	 }
	  	 var id= document.getElementById("x").value = strs[1];
       document.forms[0].action = "cuohuofankui.do?method=update&id="+id
       document.forms[0].submit; 
    });
 </script>
	

  <script type="text/javascript">

function xiugai(){
	var v1 = document.getElementById("a1").value;
	
	if(v1==''||v1==null){
	alert('用户名不能为空！');
	return false;
	}
	 var age = document.getElementById("gg").value;
	var regAge = /^\d{1,2}$/;
	if(regAge.exec(age)==null) {
	alert('年龄必须为数字！');
	return false;
	} 
	return true;
	}
</script>  
  </head>
  
  <body>
  <form action="cuohuofankui.do?method=update" method="post" onSubmit="return xiuga()">
    	id:<input type="text" name="id" id="x" disabled="true"/><br/>
    	问题日期:<input type="text" name="tradedate"/><br/>
    	订单id:<input type="text" name="dindanId"  id="a1"/><br/>
    	旺旺id:<input type="text" name="wangwid" id="gg"/><br/>
    	问题:<input type="text" name="wenti"/><br/>
    	处理方案:<input type="text" name="chulifa"  id="a1"/><br/>
    	处理结果:<input type="text" name="chulijg" id="gg"/><br/>    	
    	<input type="submit" value="提交"/>
    </form>
  </body>
</html>
